package cn.com.iscs.sqlProject.entity;


import cn.com.iscs.sqlProject.base.BaseObject;

import java.util.Date;

public class CfOperationUnit extends BaseObject {
    private Long operationUnitUkid;

    private String premiseDesc;

    private String processName;

    private String processResult;

    private String taskType;


    /**
     *是否为长期的单元
     **/
    private Long isLongTask;

    private Date createTime;

    private Date updateTime;

    private Long createUserId;

    private Long updateUserId;
    private Integer needJobPoint;
    private Integer needAuth;
    private Integer needReallot;
    private Integer clientShow;
    private String groupId;
    private Long opSeq;

    /**
     * 获取参与者匹配的规则
     * 请不要删除，
     * @return
     */
    public int matchType() {
        int matchType = 0;

        if (needJobPoint == null) {
            needJobPoint = 1;//空则认为是需要判断
        }
        if (needAuth == null) {
            needAuth = 1;//空则认为是需要判断
        }

        matchType += needJobPoint + needAuth * 2;
        return matchType;
    }

    public Integer getClientShow() {
		return clientShow;
	}

    public Long getIsLongTask() {
        return isLongTask;
    }

    public void setIsLongTask(Long isLongTask) {
        this.isLongTask = isLongTask;
    }

	public void setClientShow(Integer clientShow) {
		this.clientShow = clientShow;
	}

	public Long getOperationUnitUkid() {
        return operationUnitUkid;
    }

    public void setOperationUnitUkid(Long operationUnitUkid) {
        this.operationUnitUkid = operationUnitUkid;
    }

    public String getPremiseDesc() {
        return premiseDesc;
    }

    public void setPremiseDesc(String premiseDesc) {
        this.premiseDesc = premiseDesc == null ? null : premiseDesc.trim();
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String crtProcess) {
        this.processName = crtProcess == null ? null : crtProcess.trim();
    }

    public String getProcessResult() {
        return processResult;
    }

    public void setProcessResult(String processResult) {
        this.processResult = processResult == null ? null : processResult.trim();
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType == null ? null : taskType.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public Long getOpSeq() {
        return opSeq;
    }

    public void setOpSeq(Long opSeq) {
        this.opSeq = opSeq;
    }

    public Integer getNeedAuth() {
        return needAuth;
    }

    public void setNeedAuth(Integer needAuth) {
        this.needAuth = needAuth;
    }

    public Integer getNeedJobPoint() {
        return needJobPoint;
    }

    public void setNeedJobPoint(Integer needJobPoint) {
        this.needJobPoint = needJobPoint;
    }

    public Integer getNeedReallot() {
        return needReallot;
    }

    public void setNeedReallot(Integer needReallot) {
        this.needReallot = needReallot;
    }
}